﻿using Mvc.Sample.Models;

namespace Mvc.Sample.Data.DataSeeding;

public class TodoItemDataSeeding : IEntityDataSeeding<TodoItem>
{
    public IEnumerable<TodoItem> HasData()
    {
        return new List<TodoItem>
        {
            new()
            {
                Id = 1,
                Title = "学习C#",
                Description = "阅读C#编程书籍并完成练习",
                IsDone = false,
                DueDate = DateTime.Now.AddDays(5)
            },
            new()
            {
                Id = 2,
                Title = "跑步",
                Description = "每天早上在公园跑步10分钟",
                IsDone = true,
                DueDate = DateTime.Now.AddDays(-3)
            },
        };
    }
}
